package com.guigu.controller;

import com.guigu.pojo.Bodytest;
import com.guigu.pojo.Bodytype;
import com.guigu.service.BodytypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class BodytypeController {
    @Autowired
    BodytypeService service;
    @GetMapping("/type")
    public List<Bodytype> show(Integer memberid){
        return service.selectByPrimaryKey(memberid);
    }
}
